<!-- 体验指南 -->
<template>
   <view class="index-page">
		<view v-html="content"></view>
    </view>
</template>

<script>
  //  import api from "@/api/protocol";
    import mine from "@/api/mine.js"
    import loginApi from "@/api/login";
    import {
        getToken
    } from "@/utils/auth";
    import {
        getQueryString
    } from "@/utils/index";
import login from "@/api/login";

    export default {
        name: "Index",
        components: {},
        data() {
            return {
				content:''
            };
        },
        onLoad(query) {

        },
        onShow() {
		this.getContentList()
        },
        onReady() {},
        methods: {
            back(){
            	uni.navigateBack({
            	delta:1,//返回层数，2则上上页
            	})
            },
            // 推荐
            getContentList() {
                mine.getContentList({type:1}).then((res) => {
                    if (res.code == 200) {
						
						let list = res.rows
						if (list?.length) {
							this.content = list[0].content
							console.log(this.content,'content');
						}
                    }
                });
            },
        },
    };
</script>

<style lang="less" scoped>
    * {
        margin: 0;
        padding: 0;
        // background: #F7F8FA;
        background: #FFFFFF;
        // height: 1556rpx;
    }


    .index-page {
	width: 750rpx;
	height: 100vh;
	overflow-y: scroll;
		overflow-wrap: break-word;
	background: linear-gradient( 178deg, #E3F2FF 0%, #FFFFFF 100%);
	border-radius: 0rpx 0rpx 0rpx 0rpx;
	padding: 32rpx;
}
</style>